package com.wangbo.box.singleton;

/**
 * 饿汉式, 静态初始化, 没有线程安全问题.
 */
public class HungrySingleton {

    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return instance;
    }
}
